package com.schedualnew.mq.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.schedualnew.mq.dto.exam.ExamScheduleDto;
import com.schedualnew.mq.dto.exam.ScheduleDetailDto;
import com.schedualnew.mq.dto.exam.autoschedule.ExamApplyItemBaseInfoDto;
import com.schedualnew.mq.dto.exam.schedule.QueryScheduledAppliesDto;
import com.schedualnew.mq.dto.exam.schedule.QueryScheduledApplyDto;
import com.schedualnew.mq.dto.exam.schedule.ScheduledExamApplyInfoDto;
import com.schedualnew.mq.entity.ExamSchedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface ExamScheduleMapper extends BaseMapper<ExamSchedule> {
    int delete(String paramString);

    int save(ExamSchedule paramExamSchedule);

    String getScheduleQueueNo(Map<String, String> p0);


    String getMaxScheduleTime(Map<String, String> p0);


    List<String> querySickApplyNoList(QueryScheduledApplyDto dto);

    List<String> querySickApplyNoListByScheduleDate(QueryScheduledApplyDto dto);


    /**
     * 获取该时间点之后的申请单
     *
     * @param classs 检查类别
     * @param data   开始日期
     * @param time   开始时间
     * @return
     */
    List<ExamApplyItemBaseInfoDto> getNoScheduledApplies(@Param("classs") List<String> classs, @Param("date") String data, @Param("time") String time);


    List<ScheduleDetailDto> getScheduleList(ExamScheduleDto p0);


    List<ScheduledExamApplyInfoDto> queryScheduleApplies(QueryScheduledAppliesDto p0);
}